package vnreal.ZNEW.Algorithms;

import vnreal.ZNEW.GraphTest.Link;
import vnreal.ZNEW.GraphTest.Node;
import vnreal.ZNEW.GraphTest.Path;

public class EA_BW extends EnergyAlgorithm {

	private final static EA_BW ea_BW;

	static {
		ea_BW = new EA_BW();
	}

	private EA_BW() {
		super();
	}

	public static EA_BW getAlgorithm() {

		return ea_BW;
	}

	// @Override
	// protected boolean checkAvaliableEnergyForChoosenPath(Best best) {
	// return true;
	// }

	@Override
	protected double calculateCost(Node node, Link lnk, int i, Path p) {

		return 1 / Double.parseDouble(lnk.bandwith);
	}

}